<?php
/**
 * @Notes:【】
 * @Date: 2022-08-10 21:47
 */

namespace App\Service\Ocean;

use App\Dao\User\UserDao;
use Hyperf\Di\Annotation\Inject;

class OceanService
{
    /**
     * @Inject()
     * @var UserDao
     */
    protected $userDao;

    public function getInfo(int $userId)
    {
        $userInfo = $this->userDao->where('uid', $userId)
            ->select(['ocean_power', 'ocean_point', 'avatar'])
            ->firstOrError();
        
        return $userInfo;
    }
}